package com.sinosoft.ptas.control.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;
import com.sinosoft.ptas.entity.AnnualTargetEntity;
import com.sinosoft.ptas.entity.IndexEntity;
import com.sinosoft.ptas.entity.TargetsOfImplPhaseEntity;

/**
 * 实施期目标传输类
 * @author lianWuJun
 * @time   2017年2月18日 下午5:51:43
 */
public class TargetsOfImplphaseData implements Serializable{

	private static final long serialVersionUID = 1L;
	private String id;//标识符
	private String reportId;//所属申报表
	private String targetAttribute;//目标属性
	private String creater;//创建人
	private Date createTime;//创建时间
	private String updator;//更新人
	private Date updateTime;//更新时间
	private String targetNameOfImplphase;//实施期目标名称
	private String projectName; //项目类别
	private String sourceFlag;//实施目标来源 0：默认目标 1：自定义目标
	private List<AnnualTargetEntity> annualTargetDatalist;
	private List<IndexEntity> indexEntityList;
	
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getSourceFlag() {
		return sourceFlag;
	}
	public void setSourceFlag(String sourceFlag) {
		this.sourceFlag = sourceFlag;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getReportId() {
		return reportId;
	}
	public void setReportId(String reportId) {
		this.reportId = reportId;
	}
	public String getTargetAttribute() {
		return targetAttribute;
	}
	public void setTargetAttribute(String targetAttribute) {
		this.targetAttribute = targetAttribute;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdator() {
		return updator;
	}
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTargetNameOfImplphase() {
		return targetNameOfImplphase;
	}
	public void setTargetNameOfImplphase(String targetNameOfImplphase) {
		this.targetNameOfImplphase = targetNameOfImplphase;
	}
	
	public List<AnnualTargetEntity> getAnnualTargetDatalist() {
		return annualTargetDatalist;
	}
	public void setAnnualTargetDatalist(List<AnnualTargetEntity> annualTargetDatalist) {
		this.annualTargetDatalist = annualTargetDatalist;
	}
	
	public List<IndexEntity> getIndexEntityList() {
		return indexEntityList;
	}
	public void setIndexEntityList(List<IndexEntity> indexEntityList) {
		this.indexEntityList = indexEntityList;
	}
	/**
	 * 传输类转化成实体类
	 */
	public TargetsOfImplPhaseEntity toEntity(){
		TargetsOfImplPhaseEntity targetsOfImplPhaseEntity = new TargetsOfImplPhaseEntity();
		ObjectUtil.oldToNew(targetsOfImplPhaseEntity, this, "serialVersionUID");
		return targetsOfImplPhaseEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void totargetsOfImplPhaseData(TargetsOfImplPhaseEntity targetsOfImplPhaseEntity){
		ObjectUtil.oldToNew(this, targetsOfImplPhaseEntity, "serialVersionUID");
	}

}
